package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.MeetingReport;
import com.zhijian.medical.entity.vo.request.MeetingReportSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.request.MeetingReportSearchVo;
import com.zhijian.medical.entity.vo.response.MeetingReportVo;
import com.zhijian.util.page.Page;

import java.util.List;

/**
 * 会议报告 业务处理层
 *
 * @author auto
 * @version 1.0
 * @date 2024-04-29 17:38:35
 */
public interface MeetingReportService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    MeetingReport selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    MeetingReportVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 按照主键批量删除
     *
     * @param idList
     */
    void deleteByIdList(List<Long> idList);

    /**
     * 新增
     *
     * @param meetingReport
     * @return
     */
    Long insert(MeetingReport meetingReport);

    /**
     * 更改
     *
     * @param meetingReport
     * @return
     */
    boolean update(MeetingReport meetingReport);

    /**
     * 动态修改
     *
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(MeetingReport record);

    /**
     * 保存
     *
     * @param saveOrUpdateVo
     * @return
     */
    boolean save(MeetingReportSaveOrUpdateVo saveOrUpdateVo);

    /**
     * 编辑
     *
     * @param saveOrUpdateVo
     * @return
     */
    boolean modify(MeetingReportSaveOrUpdateVo saveOrUpdateVo);

    /**
     * 列表
     *
     * @param meetingReportSearchVo
     * @return
     */
    MeetingReportVo selectOne(MeetingReportSearchVo meetingReportSearchVo);

    /**
     * 总数
     *
     * @param meetingReportSearchVo
     * @return
     */
    Integer count(MeetingReportSearchVo meetingReportSearchVo);

    /**
     * 列表
     *
     * @param meetingReportSearchVo
     * @return
     */
    List<MeetingReportVo> selectList(MeetingReportSearchVo meetingReportSearchVo);

    /**
     * 分页查询
     *
     * @param meetingReportSearchVo
     * @return
     */
    Page<MeetingReportVo> selectPage(MeetingReportSearchVo meetingReportSearchVo);

    /**
     * 批量新增数据（MyBatis原生foreach方法）
     *
     * @param entities 实例对象列表
     * @return 影响行数
     */
    boolean insertBatch(List<MeetingReport> entities);

    /**
     * 动态删除，慎重用此方法！！
     *
     * @param meetingReportSearchVo
     * @return
     */
    void deleteByCondition(MeetingReportSearchVo meetingReportSearchVo);
}